﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ue.Qcdz.Domain.Collectors;

namespace Ue.Qcdz.Repositories.Collectors
{
    public class CollectorProxy : Collector
    {
        public CollectorProxy(object key, string siteName, string siteUrl, string outskirts, string aLink, string title, string editor, string reference, string imageUrl, string content, DateTime lastDate, string remark, int status, DateTime createOn)
            : base(key)
        {
            this.SiteName = siteName;
            this.SiteUrl = siteUrl;
            this.Outskirts = outskirts;
            this.ALink = aLink;
            this.Title = title;
            this.Editor = editor;
            this.Reference = reference;
            this.ImageUrl = imageUrl;
            this.Content = content;
            this.LastDate = lastDate;
            this.Status = status;
            //
            string[] arrRemark = (remark + "|||||||||||||||||||||||||||||").Split(new string[] { "|||" }, StringSplitOptions.None);
            this.Remark = arrRemark[0];
            this.Encode = arrRemark[1];
            this.NewsOutskirts = arrRemark[2];
            //
            base.CreateOn = createOn;
        }
    }
}
